// DataResult.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#include "DataResult.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

#include "ConvertToNMEA.h"
#include "ConnectToMap.h"
/////////////////////////////////////////////////////////////////////////////
// CDataResult dialog


CDataResult::CDataResult(CWnd* pParent /*=NULL*/)
	: CDialog(CDataResult::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDataResult)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CDataResult::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDataResult)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDataResult, CDialog)
	//{{AFX_MSG_MAP(CDataResult)
	ON_BN_CLICKED(IDC_ConvertToNMEA, OnConvertToNMEA)
	ON_BN_CLICKED(IDC_ConnectToMap, OnConnectToMap)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDataResult message handlers

void CDataResult::OnConvertToNMEA() 
{
	CConvertToNMEA	ConvertToNMEADlg;
	ConvertToNMEADlg.DoModal();
}

void CDataResult::OnConnectToMap() 
{
	CConnectToMap	ConnectToMapDlg;
	ConnectToMapDlg.DoModal();
	
}
